package com.haiwen.controller.exception;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
@ControllerAdvice
public class err {
    @ExceptionHandler(Exception.class)
    public @ResponseBody String error(Exception e){
        return "ERROR！！Program error, please pay attention to parameter issues"+e;
    }
}
